<template>
  <div style="display: flex;flex-direction: row;flex-wrap: wrap;align-content: flex-start;min-height: 20px;"
    :style="{
      'background': nodeModel.configDict.componentStyle.background,
      'width': nodeModel.configDict.componentStyle.width/2+'px',
      'flex-direction': nodeModel.configDict.componentStyle.flex_direction,
      'flex-wrap': nodeModel.configDict.componentStyle.flex_wrap,
      'overflow-x': 'scroll',
      'justify-content': nodeModel.configDict.componentStyle.justify_content,
      'align-items': nodeModel.configDict.componentStyle.align_items,
      'marginTop': nodeModel.configDict.componentStyle.marginTop/2+'px',
      'marginBottom': nodeModel.configDict.componentStyle.marginBottom/2+'px',
      'marginLeft': nodeModel.configDict.componentStyle.marginLeft/2+'px',
      'marginRight': nodeModel.configDict.componentStyle.marginRight/2+'px',
      'paddingTop': nodeModel.configDict.componentStyle.paddingTop/2+'px',
      'paddingBottom': nodeModel.configDict.componentStyle.paddingBottom/2+'px',
      'paddingLeft': nodeModel.configDict.componentStyle.paddingLeft/2+'px',
      'paddingRight': nodeModel.configDict.componentStyle.paddingRight/2+'px',
    }">
    <el-image :src="nodeModel.configDict.itemStyle.coverUrl" fit="cover" style="flex-shrink: 0;"
        :style="{
        'width': nodeModel.configDict.itemStyle.width/2 + 'px', 
        'height': nodeModel.configDict.itemStyle.height/2 + 'px',
        'borderRadius': nodeModel.configDict.itemStyle.borderRadiusForCover1/2 + 'px'}"></el-image>
  </div>
</template>
<script>
  export default {
    components: {
        
    },
    props:{
        nodeModel:{
            type: Object,
            default: res=>{}
        },
    },
    data() {
      return {
        
      }
    },
    
    methods:{

    }
  }
</script>

<style lang="scss" scoped>

</style>